<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    //取最大值：
    let num1=123,num2=789,max;
    if(num1>num2){
        max = num1;
    }else{
        max =num2
    }
    console.log(max);
    //出门买两个西红柿，如果看到卖西瓜的，就买一个,如果看到初恋，不买
    let xhs = 2, xg =10,cl=true;
    if(xg !=0 ){
        xhs = 1;
    }else if (xg ===0){
        xhs =2;
    }else{
         if (cl){
            console.log('')
         }

    }
</script>
</html>